package com.tianshu.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.OnceAbsoluteMerge;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户对象
 *
 * @ClassName SpringBootApplication
 * @Author 廖杰
 * @Date 2021/11/15 14:48
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OnceAbsoluteMerge(firstRowIndex = 2,lastRowIndex = 3,firstColumnIndex = 0,lastColumnIndex = 5)
public class User {

    @ExcelProperty("用户名")
    private String username;

    @ExcelProperty("密码")
    private String password;

    @ExcelProperty("年龄")
    private Integer age;

    @ExcelProperty({"地区", "省份"})
    private String province;

    @ExcelProperty({"地区", "城市"})
    private String city;

    @ExcelProperty({"地区", "区域"})
    private String area;
}
